import request from '@/utils/request';

// 理疗计划列表
export const physiotherapyPlanList = params => request({
    url: '/business/physiotherapyPlan/selectList',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 理疗计划导出
export const physiotherapyPlanExport = params => request({
    url: '/business/physiotherapyPlan/export',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 理疗计划新增
export const physiotherapyPlanAdd = params => request({
    url: '/business/physiotherapyPlan/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 理疗计划修改
export const physiotherapyPlanUpdatePlan = params => request({
    url: '/business/physiotherapyPlan/updatePlan',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 理疗计划退回
export const physiotherapyPlanUpdateSchedule = params => request({
    url: '/business/physiotherapyPlan/updateSchedule',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 理疗计划排期修改
export const physiotherapyPlanUpdateTime = params => request({
    url: '/business/physiotherapyPlan/updateTime',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 理疗计划状态更新
export const physiotherapyPlanStatus = params => request({
    url: '/business/physiotherapyPlan/updateStatus',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 理疗计划删除
export const physiotherapyPlanDel = params => request({
    url: '/business/physiotherapyPlan/delete',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 理疗计划详情
export const physiotherapyPlanDetail = params => request({
    url: '/business/physiotherapyPlan/getDetail',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 理疗计划列表获取患者近10条看诊记录
export const listphysio = params => request({
    url: '/business/Record/Seeing/listphysio',
    method: 'GET',
    params
});
// 获取患者近看诊记录
export const getHistory = params => request({
    url: '/business/Record/Seeing/getHistory',
    method: 'GET',
    params
});
// 理疗计划单条打印
export const physiotherapyPlanPrint = params => request({
    url: '/business/physiotherapyPlan/print',
    method: 'GET',
    params
});
// 理疗计划批量打印
export const physiotherapyPlanPrintBatch = params => request({
    url: '/business/physiotherapyPlan/printBatch',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 理疗计划关闭
export const physiotherapyPlanClose = params => request({
    url: '/business/physiotherapyPlan/updateClose',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
